<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<#include "/pages/include/front_include.ftl" />
<@h.css href="/javascripts/ligerUI/skins/Silvery/css/ligerui-all.css"/>
<@h.css href="/css/indexStyle.css"/>
<@h.css href="/css/letaoUI.css"/>
<@h.css href="/css/indexUI.css"/>
<@h.css href="/css/uc.css"/>
<@h.css href="/css/upload.css"/>
<@h.css href="/css/buttons.css"/>
<@h.js src="/javascripts/public/myfile.js"/>
<@h.js src="/javascripts/front/base.Letao.js"/>
<@h.js src="/javascripts/front/indexUI.js"/>
<script type="text/javascript">
	$.ajaxSetup ({
		cache: false //close AJAX cache
	});
	var myfile=new myfile();
	$(function(){
			$('#uploadSingleFile').click(function(){
				myfile.uploadSingleFile('${tempFileId?if_exists}');
			});
	});
	function submitSingle(){
		var form=$('#saveform');
		var legal =form.validate();
		if(legal){
			form.submit();
		}
		return;
	}
	
	function loadSingleAttach(){
		$('#attachContainer').load('${contextPath}/myfile/myfile-loadSingleTempAttach.action?tempFileId=${tempFileId?if_exists}');
	}
	
	function delSingleAttach(id){
		$('#attachContainer').load('${contextPath}/myfile/myfile-delSingleTempAttach.action?tempFileId=${tempFileId?if_exists}&attachId='+id);
	}
	
	function loadAttach(){
		$('#attachContainer').load('${contextPath}/myfile/myfile-loadTempAttach.action?tempFileId=${tempFileId?if_exists}');
	}
	
	function delAttach(id){
		$('#attachContainer').load('${contextPath}/myfile/myfile-delAdminTempAttach.action?tempFileId=${tempFileId?if_exists}&attachId='+id);
	}
	function loadImage(){
		$('#imageContainer').load('${contextPath}/myfile/myfile-loadTempImage.action?tempFileId=${tempImageId?if_exists}');
		$('#uploadImage').hide();
	}
	function delImage(id){
		$('#imageContainer').load('${contextPath}/myfile/myfile-delTempImage.action?tempFileId=${tempImageId?if_exists}&attachId='+id);
		$('#uploadImage').show();
	}
</script>
</head>

<body>
<#include "/pages/include/header.ftl" />

<div class="center">
	<div id="nav" class="nav">
		&nbsp;
	</div>
	<div class="raside">
		<div class="mt10 box">
			<div class="content">
				<h2 style="font-weight:bold">上传帮助</h2>
				<div id="docInfo" >
					<p class="c" style="text-align:left;line-height:23px;">1,点击上传文件，选择文件之后点击上传；</p>
					<p class="c" style="text-align:left;line-height:23px;">2,填写文件信息，点击提交。</p>
				</div>
			</div>
		</div>
	</div>
	<div class="main skin-category-list" style="width: 767px;min-height:400px;">
		<form id="saveform" action="${contextPath}/myfile/myfile-myFileSave.action" method="post">
		<@s.hidden id="tempFileId" name="tempFileId" value="${tempFileId?if_exists}"/>
		<@s.hidden id="tempImageId" name="tempImageId" value="${tempImageId?if_exists}"/>
		<div id="step2" class="multi-upload">
			<p class="upload-tips" id="upload-tips">为了方便资料被更多用户浏览和下载，请耐心补充以下信息。<a id="uploadSingleFile" class="minibutton" style="width:70px;"><span>上传文件</span></a></p>
			<div id="all-fill">
				<h3></h3>
				<div class="form-holder clearfix">
					<div id="attachContainer">

					</div>
				</div>
			</div>
		</div>
		</form>
	</div>
</div>
<#include "/pages/include/footer.ftl" />
</body>

</html>
